import {Application} from 'egg';

export default(app:Application)=>{
    const {CHAR}=app.Sequelize;
    const model=app.model.define('DepartmentPosition',{
        department_postion_id:{
            type:CHAR(32),
            primaryKey:true
        },//主键
        department_id:CHAR(32),//部门id
        position_id:CHAR(32),//职位id
        is_delete:CHAR(32),//标识是否删除（0：否，1：是）
    },{tableName:'t_department_position'});
    return model;
}
export class DepartmentPosition {
    department_postion_id: string;
    department_id: string;
    position_id: string;
    is_delete: string;
}